package com.example.demo.sevice.impl;

import com.example.demo.bean.Time;
import com.example.demo.dao.TimeDao;
import com.example.demo.sevice.TimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimeImpl implements TimeService {
    @Autowired
    private TimeDao timeDao;


    @Override
    public List<Time> time(String Hospital) {
        return timeDao.time(Hospital);
    }

    @Override
    public void insert(Time time) {
        timeDao.insert(time);
    }

    @Override
    public void delete(String operation) {
        timeDao.delete(operation);
    }

    @Override
    public void update(Time time) {
        timeDao.update(time);
    }
}
